# name : lead except first
# key : lead.first
# contributor: Shuguang Sun
# --
by descending ${3:usubjid};
${1:leadv} = lag(${2:var});
if first.${3:usubjid} then $1 = .;